<%@ page import="xuesheng.Student" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
      Student student = (Student) request.getAttribute("student");//获取调取过来的学生对象
    %>
    <form action="/Servletupdate"method="post"><%--接受表单的信息method是方式--%>
      姓名<input type="text" name="name" value="<%=student.getName()%>"><br>
      性别<input type="text" name="sex"value="<%=student.getSex()%>"><br>
        <input type="hidden" name="id" value="<%=student.getId()%>">
      <input type="submit" value="提交修改">
    </form>
</body>
</html>
